package org.spring.cloud.stream.guide.springcloudstreamguide.tut1;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Profile({"tut1","processor"})
@Configuration
public class Tut1Config {
	
	@Profile("receiver")
	@Bean
	public Tut1Receiver tut1Receiver(){
		return new Tut1Receiver();
	}
	
	@Profile("sender")
	@Bean
	public Tut1Sender tut1Sender(){
		return new Tut1Sender();
	}

}
